package cn.study.luckydomain.prize;

import cm.study.config.exception.LdException;
import lombok.Data;

@Data
public class Inventory {
    private Integer inventory;
    public Inventory(Integer inventory){
        this.inventory=inventory;
        if(inventory<0){
            throw new LdException("库存不足");
        }
    }
}
